import request from '@/utils/request'

export function getImages(query) {
  return request({
    url: '/stack/images',
    method: 'get',
    params: query
  })
}

export function getHost(query) {
  return request({
    url: '/stack/host',
    method: 'get',
    params: query
  })
}
export function deleteImage(query) {
  return request({
    url: '/stack/image',
    method: 'delete',
    params: query
  })
}

const uploadImage = process.env.VUE_APP_BASE_API + '/stack/image'
export { uploadImage }